<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('index')}">{$title}</a></li>
			<li><a href="{:U('add')}">添加</a></li>
			<li><a href="{:U('flush')}" class='ajax-get confirm'>更新缓存</a></li>
		</ul>

		<form class="js-ajax-form" method="post">
			<div class="table-actions">
				<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('delete')}" data-subcheck="true" data-msg="删除">删除</button>
			</div>
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="1%"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
						<th width="5%">ID</th>
						<th width="">邮箱地址</th>
						<th width="">姓名</th>
						<th width="10%">状态</th>
						<th width="10%">操作</th>
					</tr>
				</thead>
				<volist name="list" id="vo">
					<tr>
						<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}"></td>
						<td>{$vo.id}</td>
						<td>{$vo.email}</td>
						<td>{$vo.name}</td>
						<td>{$status[$vo[status]]}</td>
						<td>
							<a href="{:U('edit',array('id'=>$vo['id']))}">编辑</a>|
							<eq name='vo.status' value='1'>
								<a href="{:U('setStatus',array('id'=>$vo['id'],'status'=>'2'))}" class='ajax-get'>关闭</a>
								<else />
								<a href="{:U('setStatus',array('id'=>$vo['id'],'status'=>'1'))}" class='ajax-get'>开启</a>
							</eq>
						</td>
					</tr>
				</volist>
			</table>
			<div class="table-actions">
				<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('delete')}" data-subcheck="true" data-msg="你确定删除吗？">{:L('DELETE')}</button>
			</div>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/content_addtop.js?t={:time()}"></script>
</body>
</html>s